package com.party.model;

import java.io.Serializable;

public class Curriculum2ContentKey implements Serializable {
    private Integer contentid;

    private Integer curriculumid;

    private static final long serialVersionUID = 1L;

    public Integer getContentid() {
        return contentid;
    }

    public void setContentid(Integer contentid) {
        this.contentid = contentid;
    }

    public Integer getCurriculumid() {
        return curriculumid;
    }

    public void setCurriculumid(Integer curriculumid) {
        this.curriculumid = curriculumid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Curriculum2ContentKey other = (Curriculum2ContentKey) that;
        return (this.getContentid() == null ? other.getContentid() == null : this.getContentid().equals(other.getContentid()))
            && (this.getCurriculumid() == null ? other.getCurriculumid() == null : this.getCurriculumid().equals(other.getCurriculumid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getContentid() == null) ? 0 : getContentid().hashCode());
        result = prime * result + ((getCurriculumid() == null) ? 0 : getCurriculumid().hashCode());
        return result;
    }
}